package day12;

public class T3 {
    public static void main(String[] args){
        A1 a = new A1(0);
        add(a);
        System.out.print(a.value);
    }

    public static void add(A1 a){
        int val = a.value;
        val += 3;
        a = new A1(val);
    }
}

class A1{
    int value;
    public A1(int value){
        this.value = value;
    }
}
